package com.wait.onlinepicturecloud.domain.space.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wait.onlinepicturecloud.domain.space.entity.Space;
import com.wait.onlinepicturecloud.domain.user.entity.User;
import com.wait.onlinepicturecloud.interfaces.dto.space.SpaceAddRequest;
import com.wait.onlinepicturecloud.interfaces.dto.space.SpaceQueryRequest;
import com.wait.onlinepicturecloud.interfaces.vo.space.SpaceVO;

import javax.servlet.http.HttpServletRequest;


/**
 * @author Wait葡萄成熟时
 * @description 针对表【space(空间)】的数据库操作Service
 * @createDate 2025-04-04 10:12:44
 */
public interface SpaceDomainService {

    /**
     * description 构建QueryWrapper查询
     * author Wait葡萄成熟时
     */
    QueryWrapper<Space> getQueryWrapper(SpaceQueryRequest spaceQueryRequest);



    /**
     * description 在创建或更新空间时，需要根据空间级别自动填充限额数据
     * author Wait葡萄成熟时
     */
    void fillSpaceBySpaceLevel(Space space);


    /**
     * description 仅本人或管理员可编辑（空间校验）
     * author Wait葡萄成熟时
     */
   void checkSpaceAuth(User loginUser, Space space);
}
